const Router = require('koa-router');
const TaskController = require('../controller/task.js');
const manPowerController = require('../controller/manPower.js');
const router = new Router({
	// prefix: '/api'
});
// //用户处理
// router.post('/', UserController.postLogin)
// router.post('/login', UserController.postLogin)
// router.post('/login_out', UserController.loginOut)
// //无需登录的处理
// router.post('/see/articles', ArticleController.queryArticle);
// router.put('/pageview/articles', ArticleController.setPVandUV);
// router.post('/comment', ArticleController.commentArticle);
//需登录的处理
// router.post('/edit/articles', ArticleController.createArticle);
// router.delete('/edit/articles', ArticleController.deleteArticle);
// router.put('/edit/articles', ArticleController.updateArticle);
// router.post('/query/articles', ArticleController.queryArticle);
// router.post('/edit/uploadimg', ArticleController.uploadimg);
// router.post('/delete/article', ArticleController.deleteArticle);
router.post('/task/add', TaskController.createTask);
router.post('/task/list', TaskController.queryTask);

router.post('/manpower/peopleadd', manPowerController.createManpower);
router.post('/manpower/search', manPowerController.searchManpower);
// router.post('/test', UserController.test);

module.exports = router;